package cn.portx.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;

import com.bstek.bdf3.dorado.jpa.annotation.Generator;
import com.bstek.dorado.annotation.PropertyDef;

import cn.portx.policy.IdGeneratorPolicy;

@Entity
@Table(name = "T_ORDER_NO", indexes = { @Index(name = "OrderNo_date_", columnList = "DATE_"),
		@Index(name = "OrderNo_type_", columnList = "TYPE_") })
public class OrderNo implements Serializable {

	private static final long serialVersionUID = 4044847778671361822L;

	@Id
	@Generator(policy = IdGeneratorPolicy.class)
	@Column(name = "ID_", length = 60)
	private String id;

	@Column(name = "DATE_", length = 8)
	private String date;

	@Column(name = "MAX_NUM_")
	private long maxNum;

	/** 类型. */
	@Column(name = "TYPE_", length = 1)
	@PropertyDef(label = "类型", description = "类型:类型,0：出口；1：进口")
	private String type;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public long getMaxNum() {
		return maxNum;
	}

	public void setMaxNum(long maxNum) {
		this.maxNum = maxNum;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}
